requestchoice >env:ReqChGG TITLE "Amiga Format Issue 123" BODY "Do you want to install this game to a floppy disk or a hard drive?" GADGETS "Floppy disk|Hard drive"
if warn
skip 5
endif
if VAL $ReqChGG EQ 1
skip 1
endif
if VAL $ReqChGG EQ 0
skip 4
endif
lab 1
endif
requestfile DRAWERSONLY TITLE "Select a floppy disk to install to" >env:pathname
if warn
skip 5
endif
if VAL $ReqChGG EQ 2
skip 5
endif
lab 2
search env:pathname "af123" >nil:
if warn
info $pathname > env:check
skip 3
endif
requestfile DRAWERSONLY TITLE "Select a floppy disk that isn't a coverdisk!" >env:pathname
if warn
skip 5
endif
skip 2 back
lab 3
endif
requestchoice >env:ReqChGG TITLE "Please confirm this disk is empty" BODY "In order to install, this disk must be empty." GADGETS "Continue, this disk is empty|Cancel"
if VAL $ReqChGG EQ 0
skip 5
endif
cd $pathname >nil:
AF123a:unlzx -a -q -bi24 x AF123a:af123a1.lzx ""
skip 5
lab 4
endif
requestfile DRAWERSONLY TITLE "Select a drawer to install to" >env:pathname